<%@page import="com.mmy.domain.sys.TSysUser"%>
<%@page import="com.mmy.domain.bidtender.TBidInvite"%>
<%@page import="com.mmy.domain.bidtender.VBidInvite"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
 <%
 	TSysUser tSysUser = (TSysUser)session.getAttribute("tSysUser");
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

 <link rel="stylesheet" type="text/css" href="css/tendercss.css">	
<jsp:include page="/WEB-INF/jsp/include1.jsp"></jsp:include>
		<title>招投标管理</title>
	</head>
	<body>
<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/FrontHeader.jsp"></jsp:include>
<div id="index-back">
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Body Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="frontbg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
					<div class="row">
						<div class="span-3 col">
							<h2 class="h2color">招标</h2>
						</div>	
						<div class="span-9 col" id="websitesearchdiv" >
						<!-- 12.22 将form表单样式去丢  原有class="info-form" -->
						<form action="tofrontbidinviteindex"  >
							<h4 class="widget-title at-float-right">
							
							<span><label for="InviteName" class="seachfont"> 招标名称:</label></span>
							<input type="text" id="InviteName" class="input-width" name="strInviteName" maxlength="64" value="${strInviteName}"/>
							
							<span><label for="InviteType" class="seachfont"> 招标类型:</label></span>
							<select class="input-select-vlign " id="InviteType" name="strType" maxlength="2">
								<option value="" <c:if test="${strType==''}"> selected="selected"</c:if>>不限</option>
								<option value="0" <c:if test="${strType=='0'}"> selected="selected"</c:if>>公务</option>
				 				<option value="1" <c:if test="${strType=='1'}"> selected="selected"</c:if>>团建</option>
								<option value="2" <c:if test="${strType=='2'}"> selected="selected"</c:if>>业内</option>
								<option value="3" <c:if test="${strType=='3'}"> selected="selected"</c:if>>私密游</option>
							</select>
							
							<span><label for="InviteBudget" class="seachfont"> 招标预算:</label></span>
							<input type="number" step="0.01" id="InviteBudget" class="input-width" name="strBudget" maxlength="18" value="${strBudget}" oninput="if(value>999999999999999)value=999999999999999.00;if(value.length>18)value=value.slice(0,18);if(value<0)value=0"/>
							<input type="submit" class="btn btnheight" value="搜索" />
							</h4>
							</form>
						</div>		
					 </div >
					 </div>
				</header>

				<div class="container">
				 <c:forEach items="${lstBidInvite}" var="lstBidInvite" varStatus="status">
	 				<div class="team at-padding-large-top invite-border">
	 					<div class="row">
	 				<div class="span-3 col" >
	 				
					<h3 class="title titleinvitenamecss" >
					<a  href="toinvitedetail?iInviteID=${lstBidInvite.getInviteID()}">
			
					<label title="${lstBidInvite.getInviteName() }">${lstBidInvite.getInviteName() }</label>
					</a>
					</h3>
				
	 				
	 				</div>
	 				<div class="span-3 col invitedate" >
	 				<h5 >
					<fmt:formatDate value='${lstBidInvite.getBeginDate() }' pattern='yyyy-MM-dd'/>
					-
					<fmt:formatDate value='${lstBidInvite.getEndDate() }' pattern='yyyy-MM-dd'/>
					</h5>
	 				</div>
	 				
	 				<div class="span-6 col" >
	 					<h5 class="title" >
	 				招标人:<input type="text" value="${lstBidInvite.getName() }" class="invitenamecss" readonly="readonly" />
				
					分类:
					<c:if test="${lstBidInvite.getType()==0}"><input type="text" value="公务" class="invitetypecss" readonly="readonly" /></c:if>
			        <c:if test="${lstBidInvite.getType()==1}"><input type="text" value="团建" class="invitetypecss" readonly="readonly" /></c:if>
			        <c:if test="${lstBidInvite.getType()==2}"><input type="text" value="业内" class="invitetypecss" readonly="readonly" /></c:if>
	 				<c:if test="${lstBidInvite.getType()==3}"><input type="text" value="私密游" class="invitetypecss" readonly="readonly" /></c:if>
	 				
	 				
	 				预算:<input type="text" value="${lstBidInvite.getBudget() }" class="invitebudgetcss" readonly="readonly" />
					</h5>
	 			
					</div>
					
	 				</div>
	 			
	 				<!-- 2020.12.22 根据鲁美设计去掉 线条 HANxl  <div class="line"></div> -->
	 				<div class="row">	
	 				<div class="span-2 col">		
	 				<div class="tenderscenic">
	 				<font>用餐要求</font>
	 				</div>
	 				<div class="team-content ">
	 				<div class=" tendertextarea">
	 				<p class="tenderdiv" >
	 	<label>${lstBidInvite.getMeal() }	</label>
	 			</p>
	 		<div class="at-float-right" onclick="inviteMeal(${status.index })"><a href="#" >【详情】</a>	</div>
	 	
	 			</div>
	 	
	 				</div>
	 				</div>
	 				<div class="span-2 col">
	 				<div class="tenderscenic">
	 				<font>住宿要求</font>
	 				</div>
	 				<div class="team-content">
	 				<div class=" tendertextarea">
	 				<p class="tenderdiv" >
	 	<label>${lstBidInvite.getStay() }	</label>
	 			</p>
	 		<div class="at-float-right" onclick="inviteStay(${status.index })"><a href="#" >【详情】</a>	</div>
	 	
	 			</div>
	 				</div>
	 				</div>
	 				<div class="span-2 col">
	 				<div class="tenderscenic">
	 				<font>用车要求</font>
	 				</div>
	 				<div class="team-content">
	 				<div class=" tendertextarea">
	 				<p class="tenderdiv" >
	 	<label>${lstBidInvite.getCar() }	</label>
	 			</p>
	 		<div class="at-float-right" onclick="inviteCar(${status.index })"><a href="#" >【详情】</a>	</div>
	 	
	 			</div>
	 			</div>
	 				</div>
	 				<div class="span-2 col">
	 				<div class="tenderscenic">
	 				<font>行程要求</font>
	 				</div>
	 				<div class="team-content">
	 				<div class=" tendertextarea">
	 				<p class="tenderdiv" >
	 	<label>${lstBidInvite.getTrip() }	</label>
	 			</p>
	 		<div class="at-float-right" onclick="inviteTrip(${status.index })"><a href="#" >【详情】</a>	</div>
	 	
	 			</div>
	 				</div>
	 				</div>
	 				<div class="span-2 col">
	 				<div class="tenderscenic">
	 				<font>购物要求</font>
	 				</div>
	 				<div class="team-content">
	 				<div class=" tendertextarea">
	 				<p class="tenderdiv" >
	 	<label>${lstBidInvite.getShop() }	</label>
	 			</p>
	 		<div class="at-float-right" onclick="inviteShop(${status.index })"><a href="#" >【详情】</a>	</div>
	 	
	 			</div>
	 				</div>
	 				</div>
	 				<div class="span-2 col">
	 				<div class="tenderscenic">
	 				<font>娱乐要求</font>
	 				</div>
	 				<div class="team-content">
	 			<div class=" tendertextarea">
	 				<p class="tenderdiv" >
	 	<label>${lstBidInvite.getRecreation() }	</label>
	 			</p>
	 		<div class="at-float-right" onclick="inviteRecreation(${status.index })"><a href="#" >【详情】</a>	</div>
	 	
	 			</div>
	 				</div>
	 				</div>
	 					
	 				</div>
	 			<div class="row ">
	 				<div class="span-9 col "></div>
	 			<div class="span-3 col " >
	 		<h5 class="title" >
	 				竞标数量:
	 				<c:if test="${lstBidInvite.getCount()==null}"><input type="text" value="0"  class="tendernumbercss"  readonly="readonly"/></c:if>
	 				<c:if test="${lstBidInvite.getCount()!=null}"><input type="text" value="${lstBidInvite.getCount()}"  class="tendernumbercss"  readonly="readonly"/></c:if>
	 				
					<input type="button" class="btn" value="竞标" onclick="joinTender('${lstBidInvite.getInviteID()}','${lstBidInvite.getInviteName()}')"/>	
					
					</h5>
					</div>
	 				</div>	
	 				
	 				
	 				<div class="inviteMeal" id="inviteMeal${status.index }" >
					<div class="inviteMealPop">
						<div id="headers">
							<div id="meal${status.index }" class="popMealContent">
							<h4 style="text-align: left; color: #FFFFFF;background-color:#1eab3c; font-weight: 1000;font-size: 36px; height: 60px;padding: 8px;"> 用餐要求</h4>
					<div style="padding:0 5%;">
					<label>${lstBidInvite.getMeal() }	</label>
					</div>
						
						</div>
						<div id="stay${status.index }" class="popStayContent">
							<h4 style="text-align: left; color: #FFFFFF;background-color:#1eab3c; font-weight: 1000;font-size: 36px; height: 60px;padding: 8px;"> 住宿要求</h4>
					<div style="padding:0 5%;">
					<label>${lstBidInvite.getStay() }	</label>
					</div>
						
						</div>
						<div id="car${status.index }" class="popCarContent">
							<h4 style="text-align: left; color: #FFFFFF;background-color:#1eab3c; font-weight: 1000;font-size: 36px; height: 60px;padding: 8px;"> 用车要求</h4>
					<div style="padding:0 5%;">
					<label>${lstBidInvite.getCar() }	</label>
					</div>
						
						</div>
						<div id="trip${status.index }" class="popTripContent">
							<h4 style="text-align: left; color: #FFFFFF;background-color:#1eab3c; font-weight: 1000;font-size: 36px; height: 60px;padding: 8px;"> 行程要求</h4>
					<div style="padding:0 5%;">
					<label>${lstBidInvite.getTrip() }	</label>
					</div>
						
						</div>
						<div id="shop${status.index }" class="popShopContent">
							<h4 style="text-align: left; color: #FFFFFF;background-color:#1eab3c; font-weight: 1000;font-size: 36px; height: 60px;padding: 8px;"> 购物要求</h4>
					<div style="padding:0 5%;">
					<label>${lstBidInvite.getShop() }	</label>
					</div>
						
						</div>
						<div id="recreation${status.index }" class="popRecreationContent">
							<h4 style="text-align: left; color: #FFFFFF;background-color:#1eab3c; font-weight: 1000;font-size: 36px; height: 60px;padding: 8px;"> 娱乐要求</h4>
					<div style="padding:0 5%;">
					<label>${lstBidInvite.getRecreation() }	</label>
					</div>
						
						</div>
							<div id="headers-right" onclick="hidderMeal(${status.index })">&nbsp;x</div>
						</div>
					</div>
				</div> 
	 				</div>
	 				</c:forEach>		 			
				</div>
				<center>
					<a href="tofrontbidinviteindex?pageNumber=1&pageSize=${iPageSize}&strInviteName=${strInviteName}&strType=${strType}&strBudget=${strBudget}">首页</a>
						<c:choose>
							<c:when test="${iPageNo == 1}">
						
							</c:when>
							<c:otherwise>
								<a href="tofrontbidinviteindex?pageNumber=${iPageNo-1}&pageSize=${iPageSize}&strInviteName=${strInviteName}&strType=${strType}&strBudget=${strBudget}">上一页</a>
							</c:otherwise>
						
						</c:choose>
						<c:choose>
							<c:when test="${iPageNo == iMaxPage}">
						
							</c:when>
							<c:otherwise>
								<a href="tofrontbidinviteindex?pageNumber=${iPageNo+1}&pageSize=${iPageSize}&strInviteName=${strInviteName}&strType=${strType}&strBudget=${strBudget}">下一页</a>
							</c:otherwise>
						
						</c:choose>
							<a href="tofrontbidinviteindex?pageNumber=${iMaxPage}&pageSize=${iPageSize}&strInviteName=${strInviteName}&strType=${strType}&strBudget=${strBudget}">尾页</a>
						</center>		
				
		 	</article>
		</main>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Body End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<!-- /st-container -->
	
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Script Embed Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Slider -->
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
		<script>
			new GridScrollFx( document.getElementById( 'news-grid' ), {
				viewportFactor : 0.4
			} );
		</script>

</body>

</html>